package kubayaxi.video.client.recipe;

import org.springframework.beans.factory.annotation.Autowired;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

/**
 * @program: kubayaxi_video_back
 * @description:
 * @author: Mr.lin
 * @create: 2023-01-02 14:12
 **/

public class Main {
	public static void main(String[] args) throws Exception{
		String filePath = "F:\\Nov_share\\ImageShare\\0\\zp_480_402_0_20221221221800.zpk";
		File file = new File(filePath);
		FileReader fileReader = new FileReader(file);
		BufferedReader reader = new BufferedReader(fileReader);
		String s = reader.readLine();
		System.out.println(s);
		int sStart = s.indexOf('{');
		int sEnd = s.lastIndexOf('}');
		System.out.println(s.substring(sStart, sEnd + 1));

		reader.close();
		fileReader.close();
	}
}
